function service(url,method,data){
	return new Promise((resolve,reject)=>{
		uni.request({
			url,
			data,
			method,
			success(res){
				resolve(res)
			},
			fail(err){
				reject(err);
			}
		})
	})
}

export default service;